<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<!--<div th:if="${#strings.isEmpty(courses.scList)}">
    <p>该课程为添加学生</p>
</div>-->
<div th:if="${not #strings.isEmpty(courses.scList)}">
    <table class="table table-hover">
        <tr>
            <th>sno</th>
            <th>sname</th>
            <th>ssex</th>
            <th>sdept</th>
            <th>sclass</th>
            <td>操作</td>
        </tr>

            <tr th:each="course:${courses.scList}">
                <td th:text="${course.student.sno}"></td>
                <td th:text="${course.student.sname}"></td>
                <td th:text="${course.student.ssex}"></td>
                <td th:text="${course.student.sdept}"></td>
                <td th:text="${course.student.sclass}"></td>
                <td><a href="">删除</a></td>
            </tr>
    </table>
</div>
</body>
</html>